package com.schoolai.schoolset.controller;

import com.schoolai.schoolset.req.SmsLogREQ;
import com.schoolai.schoolset.service.ISchoolSetSmsLogService;
import com.schoolai.util.base.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author bobby
 * @since 2025-11-14
 */
@RestController
@Slf4j
@Tag(name = "短信", description = "短信相关操作")
@RequestMapping("/SmsLog")
public class SchoolSetSmsLogController {
    @Autowired
    ISchoolSetSmsLogService SchoolSetSmsLogService;
    @Operation(summary = "查询短信日志")
    @PostMapping("/search")
    @ApiResponses({
            @ApiResponse(responseCode = "20000", description = "操作成功"),
            @ApiResponse(responseCode = "999", description = "错误")
    })
    Result search(@RequestBody SmsLogREQ req){
        return SchoolSetSmsLogService.queryPage(req);
    }

}
